package cn.wd.qo;

import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Getter
@Setter
public class UserQueryObject extends QueryObject {

    private String keyword;

    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date beginDate;

    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date endDate;

    private Integer status;

    private boolean deleted;

    public void setDeleted(Boolean deleted) {
        this.deleted = deleted == null ? false : deleted;
    }

}
